package test.util.annotation;

import org.junit.Assert;
import org.junit.Test;

import test.BaseTester;
import test.entity.TestDomain;
import test.util.annotation.processor.ColumnAnnotationProcessor;

public class ColumnAnnotationProcessorTester extends BaseTester {

    @Test
    public void testGetColumns() {
        try {
            String[] columns = ColumnAnnotationProcessor.getColumns(TestDomain.class);
            Assert.assertEquals(5, columns.length);
            for (String column : columns)
                System.out.println(column);
        } catch (Exception e) {
            e.printStackTrace();
            Assert.fail(e.getMessage());
        }
    }
}
